Imports System.Collections
Imports SchemaCodeGen

Partial Class pages_Languages_default : Inherits CPage


#Region "Data"
    Public ReadOnly Property [Languages]() As CLanguageList
        Get
			Return CLanguage.Cache
		End Get
    End Property
#End Region

#Region "Event Handlers - Page "
    Protected Overrides Sub PageInit()
		'Populate Dropdowns



		'Display Results
		ctrlLanguages.Display(Me.Languages)
	End Sub
#End Region


#Region "Event Handlers - UserControl"
	Private Sub ctrl_ExportClick() Handles ctrlLanguages.ExportClick
        Languages.ExportToCsv(Response, "Languages.csv")
    End Sub
    Private Sub ctrl_ResortClick(ByVal sortBy As String, ByVal descending As Boolean, ByVal pageNumber As Integer) Handles ctrlLanguages.ResortClick
		Response.Redirect(CSitemap.Languages(New CPagingInfo(0, pageNumber - 1, sortBy, descending)))
	End Sub
#End Region

End Class
